<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">
    <title>房屋中介网</title>
    <link rel="stylesheet" href="asset/css/bootstrap.min.css"/>
    <script src="../../assets/js/ie-emulation-modes-warning.js"></script>
    <link href="carousel.css" rel="stylesheet">
</head>
<body>
    <div class="container">
        <!-- NAVBAR================================================== -->
        <div class="header">
            <ul class="nav nav-pills pull-right" role="tablist">
                <?php
                if(!isset($_SESSION['user'])){
                    ?>
                    <li role="presentation"><a href="index.php?c=user&m=UserLoginview">登录</a></li>
                    <li role="presentation"><a href="index.php?c=user&m=UserRegview">注册</a></li>
                    <?php
                }else if("1"==$f_data['flag']){
                 echo "<li role='presentation'><a href='index.php?c=house&m=HouseForm'>我是业主</a></li>";
                 echo "<li role='presentation'><a href='index.php?c=house&m=houselist&uname=".$_SESSION['user']."'>管理我的房屋</a></li>";
                 echo "<li role='presentation'><a href='index.php?c=user&m=userinfro&uname=".$_SESSION['user']."'>".$_SESSION['user']."</a></li>";
                 echo "<li role='presentation'><a href='index.php?c=user&m=userlogout'>注销</a></li>";
             }else {
                echo "<li role='presentation'><a href='index.php?c=user&m=userinfro&uname=".$_SESSION['user']."'>".$_SESSION['user']."</a></li>";
                echo "<li role='presentation'><a href='index.php?c=user&m=userlogout'>注销</a></li>";
            }
            ?>
            <li>
                <form class="navbar-form" action="index.php?c=House&m=search" method="post">
                    <div class="form-group">
                        <input type="text" class="form-control" name="key" placeholder="例:三室一厅" required>
                    </div>
                    <button type="submit" class="btn btn-info">搜索</button>
                </form>
            </li>
        </ul>
        <h1 class="text-muted"><a href="index.php?c=index&m=getindex" role="button" class="btn btn-primary btn-lg active">房屋中介网</a></h1>
    </div>
<!--/.Navbar-->